package com.wr.hangzhounewlight.obj.vo.frontend;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.wr.hangzhounewlight.obj.database.ChangeLogEntity;
import lombok.Data;

import java.time.LocalDateTime;

/**
 * @author yuanzhizhuo
 * createDate 2025/11/13
 */
@Data
public class ChangeLogVO {

    private String orderNo;
    private String checkMessage;
    private String log;
    private String operator;
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime operationTime;

    public ChangeLogVO(ChangeLogEntity entity) {
        this.orderNo = entity.getOrderNo();
        this.checkMessage = entity.getCheckMessage();
        this.log = entity.getLog();
        this.operator = "?";
        this.operationTime = entity.getInsertTime();
    }

}
